import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-news',
  templateUrl: './news.component.html',
  styleUrls: ['./news.component.less']
})
export class NewsComponent implements OnInit {

  public peopleInfo: {[key: string]: any} = {
    username: '',
    gender: 'male',
    citys: ['广州', '北京', '上海', '深圳'],
    city: '北京',
    hobby: [
      {
        title: '吃饭',
        checked: false
      },
      {
        title: '睡觉',
        checked: true
      },
      {
        title: '打豆豆',
        checked: false
      },
    ],
    mark: ''
  }

  constructor() { }

  ngOnInit(): void {
  }

  submit() {
    console.log(this.peopleInfo)
  }

}
